<template>
  <div class="about-container">
    <!-- 页面标题 -->
    <div class="page-header">
      <div class="header-content">
        <h1 class="page-title">关于系统</h1>
        <p class="page-subtitle">了解我们的管理平台</p>
        <div class="header-decoration"></div>
      </div>
    </div>

    <!-- 系统介绍 -->
    <div class="section">
      <div class="section-card">
        <div class="card-header">
          <div class="card-icon">
            <el-icon>
              <InfoFilled />
            </el-icon>
          </div>
          <h2 class="section-title">系统介绍</h2>
        </div>
        <p class="section-content">
          这是一个基于 Vue 3 + Element Plus 构建的现代化管理平台，提供完整的权限管理和角色管理功能。
          系统采用前后端分离架构，具有高性能、高安全性和良好的用户体验。
        </p>
      </div>
    </div>

    <!-- 技术栈 -->
    <div class="section">
      <div class="section-header">
        <h2 class="section-title">技术栈</h2>
        <p class="section-subtitle">采用最新的前端技术</p>
      </div>
      <div class="tech-grid">
        <div class="tech-card">
          <div class="tech-icon">Vue</div>
          <h3>Vue 3</h3>
          <p>渐进式 JavaScript 框架</p>
          <div class="tech-badge">核心</div>
        </div>
        <div class="tech-card">
          <div class="tech-icon">TS</div>
          <h3>TypeScript</h3>
          <p>类型安全的 JavaScript</p>
          <div class="tech-badge">类型</div>
        </div>
        <div class="tech-card">
          <div class="tech-icon">EP</div>
          <h3>Element Plus</h3>
          <p>Vue 3 组件库</p>
          <div class="tech-badge">UI</div>
        </div>
        <div class="tech-card">
          <div class="tech-icon">Vite</div>
          <h3>Vite</h3>
          <p>下一代前端构建工具</p>
          <div class="tech-badge">构建</div>
        </div>
      </div>
    </div>

    <!-- 功能特性 -->
    <div class="section">
      <div class="section-header">
        <h2 class="section-title">功能特性</h2>
        <p class="section-subtitle">强大的系统功能</p>
      </div>
      <div class="features-grid">
        <div class="feature-item">
          <div class="feature-icon">
            <el-icon>
              <Lock />
            </el-icon>
          </div>
          <div class="feature-content">
            <h3>权限管理</h3>
            <p>细粒度的权限控制，支持菜单权限和操作权限</p>
          </div>
        </div>
        <div class="feature-item">
          <div class="feature-icon">
            <el-icon>
              <User />
            </el-icon>
          </div>
          <div class="feature-content">
            <h3>角色管理</h3>
            <p>灵活的角色分配，支持多角色配置</p>
          </div>
        </div>
        <div class="feature-item">
          <div class="feature-icon">
            <el-icon>
              <Monitor />
            </el-icon>
          </div>
          <div class="feature-content">
            <h3>实时监控</h3>
            <p>系统运行状态实时监控和日志记录</p>
          </div>
        </div>
        <div class="feature-item">
          <div class="feature-icon">
            <el-icon>
              <Mobile />
            </el-icon>
          </div>
          <div class="feature-content">
            <h3>响应式设计</h3>
            <p>支持多设备访问，移动端友好</p>
          </div>
        </div>
      </div>
    </div>

    <!-- 版本信息 -->
    <div class="section">
      <div class="section-card">
        <div class="card-header">
          <div class="card-icon">
            <el-icon>
              <Document />
            </el-icon>
          </div>
          <h2 class="section-title">版本信息</h2>
        </div>
        <div class="version-info">
          <div class="version-item">
            <div class="version-icon">
              <el-icon>
                <Tag />
              </el-icon>
            </div>
            <div class="version-content">
              <span class="version-label">当前版本</span>
              <span class="version-value">v1.0.0</span>
            </div>
          </div>
          <div class="version-item">
            <div class="version-icon">
              <el-icon>
                <Calendar />
              </el-icon>
            </div>
            <div class="version-content">
              <span class="version-label">发布日期</span>
              <span class="version-value">2024-01-15</span>
            </div>
          </div>
          <div class="version-item">
            <div class="version-icon">
              <el-icon>
                <Edit />
              </el-icon>
            </div>
            <div class="version-content">
              <span class="version-label">更新内容</span>
              <span class="version-value">初始版本发布，包含基础权限管理功能</span>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<style scoped>
.about-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
}

.page-header {
  text-align: center;
  margin-bottom: 4rem;
  padding: 3rem 0;
  position: relative;
}

.header-content {
  position: relative;
  z-index: 2;
}

.page-title {
  font-size: 3rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  font-size: 1.2rem;
  color: #64748b;
  margin-bottom: 2rem;
}

.header-decoration {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(29, 78, 216, 0.1) 100%);
  border-radius: 50%;
  z-index: -1;
}

.section {
  margin-bottom: 4rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1rem;
  color: #64748b;
  margin-top: 1rem;
}

.section-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.section-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border-color: #3b82f6;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.card-icon .el-icon {
  font-size: 1.5rem;
  color: #fff;
}

.section-content {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #475569;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.tech-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.tech-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
  border-color: #3b82f6;
}

.tech-card:hover::before {
  transform: scaleX(1);
}

.tech-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.5rem;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.tech-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: #1e293b;
}

.tech-card p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.tech-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  color: #3b82f6;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.feature-item {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border-color: #3b82f6;
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.feature-icon .el-icon {
  font-size: 2rem;
  color: #fff;
}

.feature-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: #1e293b;
}

.feature-content p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
}

.version-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.version-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.version-item:hover {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-color: #3b82f6;
  transform: translateX(8px);
}

.version-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.version-icon .el-icon {
  font-size: 1.3rem;
  color: #fff;
}

.version-content {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.version-label {
  font-weight: 600;
  color: #475569;
  font-size: 0.9rem;
}

.version-value {
  color: #1e293b;
  font-size: 1.1rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .page-title {
    font-size: 2rem;
  }

  .tech-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .version-item {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .section-card {
    padding: 1.5rem;
  }

  .tech-card {
    padding: 1.5rem;
  }

  .feature-item {
    padding: 1.5rem;
  }
}
</style>
